<!DOCTYPE html>
<!--后台页面基本模板-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->

<!-- 头部开始 -->
<head>
	<meta charset="utf-8"/>
	<!-- 网页标题块 -->
	<title>
		<{$COMMON.mallTitle}> | <block name="title"></block>	
	</title>
	<!-- 网页标题块 -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1" name="viewport"/>
	<link rel="shortcut icon" href="favicon.ico"/>
	<!-- 开始公共样式 -->
	<link href="__PUBLIC__/admin/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
	<!-- 结束公共样式 -->
	<!-- 开始插件样式 -->
	<link href="__PUBLIC__/admin/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css"/>
	<!-- 开始插件样式块 -->
	<block name="pluginCSS"></block>
	<!-- 结束插件样式块 -->	
	<!-- 结束插件样式 -->
	<!-- 开始主题样式 -->
	<link href="__PUBLIC__/admin/css/style-metronic.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/css/plugins.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/css/pages/tasks.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/>
	<link href="__PUBLIC__/admin/css/print.css" rel="stylesheet" type="text/css" media="print"/>
	<link href="__PUBLIC__/admin/css/pages/profile.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/admin/css/custom.css" rel="stylesheet" type="text/css"/>
	<!-- 结束主题样式 -->
	<!-- 开始自定义样式块 -->
	<block name="CSS"></block>
	<!-- 结束自定义样式块 -->
</head>
<!-- 头部结束 -->


<!-- 主体开始 -->
<body class="page-header-fixed">


<!-- 主体头部开始 -->
<div class="header navbar navbar-fixed-top">
	<!-- 开始顶部导航 -->
	<div class="header-inner">

		<!-- 开始 LOGO -->
		<a class="navbar-brand" href="<{:U('Home/Index/index')}>">
			<img src="__PUBLIC__/admin/img/logo.png" alt="logo" class="img-responsive"/>
		</a>
		<!-- 结束 LOGO -->

		<!-- 开始响应菜单 -->
		<a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
			<img src="__PUBLIC__/admin/img/menu-toggler.png" alt=""/>
		</a>
		<!-- 结束响应菜单 -->

		<!-- 开始顶部导航菜单 -->
		<ul class="nav navbar-nav pull-right">
			<!-- BEGIN NOTIFICATION DROPDOWN -->
			<!-- <li class="dropdown" id="header_notification_bar">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
					<i class="fa fa-warning"></i>
					<span class="badge">
						 6
					</span>
				</a>
				<ul class="dropdown-menu extended notification">
					<li>
						<p>
							 你有2条新通知
						</p>
					</li>
					<li>
						<ul class="dropdown-menu-list scroller" style="height: 250px;">
							<li>
								<a href="#">
									<span class="label label-sm label-icon label-success">
										<i class="fa fa-plus"></i>
									</span>
									 通知内容--用户注册
									<span class="time">
										 通知时间
									</span>
								</a>
							</li>
							<li>
								<a href="#">
									<span class="label label-sm label-icon label-danger">
										<i class="fa fa-bolt"></i>
									</span>
									 通知内容--服务器超载
									<span class="time">
										 通知时间
									</span>
								</a>
							</li>
						</ul>
					</li>
					<li class="external">
						<a href="#">
							 查看所有通知 <i class="m-icon-swapright"></i>
						</a>
					</li>
				</ul>
			</li> -->
			<!-- END NOTIFICATION DROPDOWN -->
			<!-- BEGIN INBOX DROPDOWN -->
			<!-- <li class="dropdown" id="header_inbox_bar">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
					<i class="fa fa-envelope"></i>
					<span class="badge">
						 5
					</span>
				</a>
				<ul class="dropdown-menu extended inbox">
					<li>
						<p>
							 你有2条新消息
						</p>
					</li>
					<li>
						<ul class="dropdown-menu-list scroller" style="height: 250px;">
							<li>
								<a href="inbox.html?a=view">
									<span class="photo">
										<img src="__PUBLIC__/admin/img/avatar2.jpg" alt=""/>
									</span>
									<span class="subject">
										<span class="from">
											 发送人
										</span>
										<span class="time">
											 发送时间
										</span>
									</span>
									<span class="message">
										 消息内容消息内容消息内容消息内容消息内容消息内容...
									</span>
								</a>
							</li>
							<li>
								<a href="inbox.html?a=view">
									<span class="photo">
										<img src="__PUBLIC__/admin/img/avatar3.jpg" alt=""/>
									</span>
									<span class="subject">
										<span class="from">
											 发送人
										</span>
										<span class="time">
											 发送时间
										</span>
									</span>
									<span class="message">
										 消息内容消息内容消息内容消息内容消息内容消息内容......
									</span>
								</a>
							</li>
						</ul>
					</li>
					<li class="external">
						<a href="inbox.html">
							 查看所有消息 <i class="m-icon-swapright"></i>
						</a>
					</li>
				</ul>
			</li> -->
			<!-- END INBOX DROPDOWN -->
			<!-- BEGIN TODO DROPDOWN -->
			<!-- <li class="dropdown" id="header_task_bar">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
					<i class="fa fa-tasks"></i>
					<span class="badge">
						 5
					</span>
				</a>
				<ul class="dropdown-menu extended tasks">
					<li>
						<p>
							 你有2条未完成任务
						</p>
					</li>
					<li>
						<ul class="dropdown-menu-list scroller" style="height: 250px;">
							<li>
								<a href="#">
									<span class="task">
										<span class="desc">
											 新版本 v1.2
										</span>
										<span class="percent">
											 30%
										</span>
									</span>
									<span class="progress">
										<span style="width: 40%;" class="progress-bar progress-bar-success" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100">
											<span class="sr-only">
												 40% Complete
											</span>
										</span>
									</span>
								</a>
							</li>
							<li>
								<a href="#">
									<span class="task">
										<span class="desc">
											 应用开发
										</span>
										<span class="percent">
											 65%
										</span>
									</span>
									<span class="progress progress-striped">
										<span style="width: 65%;" class="progress-bar progress-bar-danger" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100">
											<span class="sr-only">
												 65% Complete
											</span>
										</span>
									</span>
								</a>
							</li>
						</ul>
					</li>
					<li class="external">
						<a href="#">
							 查看所有任务 <i class="m-icon-swapright"></i>
						</a>
					</li>
				</ul>
			</li> -->
			<!-- END TODO DROPDOWN -->
			<!-- BEGIN USER LOGIN DROPDOWN -->
			<li class="dropdown user">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
					<img alt="" src="__UPLOAD__/<{$Think.session.admin.managerPhoto|str_replace='.','_s.',###}>"/>
					<span class="username">
						 <{$Think.session.admin.loginName}>
					</span>
					<i class="fa fa-angle-down"></i>
				</a>
				<ul class="dropdown-menu">
					<!-- <li>
						<a href="extra_profile.html">
							<i class="fa fa-user"></i> 我的资料
						</a>
					</li> -->
					<li>
						<a data-toggle="modal" href="#basic">
							<i class="fa fa-user"></i> 修改密码
						</a>
					</li>
					<!-- <li>
						<a href="page_calendar.html">
							<i class="fa fa-calendar"></i> 我的日历
						</a>
					</li>
					<li>
						<a href="inbox.html">
							<i class="fa fa-envelope"></i> 我的收件箱
							<span class="badge badge-danger">
								 3
							</span>
						</a>
					</li>
					<li>
						<a href="#">
							<i class="fa fa-tasks"></i> 我的任务
							<span class="badge badge-success">
								 7
							</span>
						</a>
					</li> -->
					<li class="divider">
					</li>
					<li>
						<a href="javascript:;" id="trigger_fullscreen">
							<i class="fa fa-arrows"></i> 全屏
						</a>
					</li>
					<li>
						<a href="<{:U('Public/lock')}>">						
							<i class="fa fa-lock"></i> 锁屏
						</a>
					</li>
					<li>
						<a href="<{:U('Public/logout')}>">
							<i class="fa fa-key"></i> 退出
						</a>
					</li>
				</ul>
			</li>
			<!-- END USER LOGIN DROPDOWN -->
		</ul>
		<!-- 结束顶部导航菜单 -->
	</div>
	<!-- 结束顶部导航 -->
</div>
<!-- 主体头部结束 -->

<div class="clearfix">
</div>

<!-- 开始主体内容 -->
<div class="page-container">
	<!-- 边栏开始 -->
	<div class="page-sidebar-wrapper">
		<div class="page-sidebar navbar-collapse collapse">
			<!-- add "navbar-no-scroll" class to disable the scrolling of the sidebar menu -->
			<!-- 边栏菜单开始 -->
			<ul class="page-sidebar-menu" data-auto-scroll="true" data-slide-speed="200">
				<li class="sidebar-toggler-wrapper">
					<!-- 边栏切换按钮 -->
					<div class="sidebar-toggler hidden-phone">
					</div>
					<!-- 边栏切换按钮 -->
				</li>
				<li class="sidebar-search-wrapper">
					<!-- 边栏快捷搜索开始 -->
					<form class="sidebar-search" action="<{:U('Orders/search')}>" method="POST">
						<div class="form-container">
							<div class="input-box">
								<a href="javascript:;" class="remove">
								</a>
								<input type="text" placeholder="订单搜索..." name="search" value="<{$search}>"/>
								<input type="button" class="submit" value=" "/>
							</div>
						</div>
					</form>
					<!-- 边栏快捷菜单结束 -->
				</li>
				<li class="start <if condition="$authId eq -1">active</if>">
					<a href="<{:U('Index/index')}>">
						<i class="fa fa-home"></i>
						<span class="title">
							仪表台 
						</span>
						<if condition="$authId eq -1">
						<span class="selected">
						</span></if>
					</a>
				</li>

				<!-- 开始边栏菜单循环 -->
				<foreach name="auth" item="val" key="key">
				<php>
					if(substr_count($val['authPath'],',')==1):
				</php>
				<li <php>if($val['authId']==$parentId) echo 'class="active"'</php>>
					<a href="javascript:;">
						<i class="fa <{$val['authIco']|default='fa-cog'}>"></i>
						<span class="title">
							<{$val['authName']}>
						</span>
						
						<php>
						if($val['authId']==$parentId){ 
						echo '<span class="selected"></span>';
						}
						</php>
						<span class="arrow <php>if($val['authId']==$parentId) echo 'open'</php>">
						</span>
						<if condition="$val['authId'] eq 1">	
							<span class="gnum badge badge-warning" style="display:none"></span>
						</if>
						<if condition="$val['authId'] eq 2">
							<span class="snum badge badge-warning" style="display:none"></span>
						</if>
						


					</a>
					<ul class="sub-menu">
						<foreach name="auth" item="v" key="k">
						<php>
							if($v['parentId']==$val['authId']):
						</php>

						<li <php>if($v['authId']==$authId) echo 'class="active"'</php>>
							<a href="__MODULE__/<{$v['controller']}>/<{$v['action']}>">
								<i class="fa <{$v['authIco']|default='fa-list'}>"></i>
								<{$v['authName']}>
								<if condition="$v['authId'] eq 14">
									<span class="gnum badge badge-success" style="display:none"></span>
								</if>
								<if condition="$v['authId'] eq 13">
									<span class="snum badge badge-success" style="display:none"></span>
								</if>
							</a>
						</li>
						<php>
							endif;
						</php>
						</foreach>
					</ul>
				</li>

				<php>
					endif;
				</php>



				</foreach>



				<!-- 结束边栏菜单循环 -->

				<li class="last  <if condition="$authId eq -2">active</if>">
					<a href="<{:U('Index/about')}>">
						<i class="fa fa-bar-chart-o"></i>
						<span class="title">
							团队简介
						</span><if condition="$authId eq -2">
						<span class="selected">
						</span></if>
					</a>
				</li>
			</ul>
			<!-- END SIDEBAR MENU -->
		</div>
	</div>
	<!-- 边栏结束 -->


	<!-- 开始内容 -->
	<div class="page-content-wrapper">
		<div class="page-content">
			
			<!-- 开始主题样式 -->
			<div class="theme-panel hidden-xs hidden-sm">
				<div class="toggler">
				</div>
				<div class="toggler-close">
				</div>
				<div class="theme-options">
					<div class="theme-option theme-colors clearfix">
						<span>
							 主题颜色
						</span>
						<ul>
							<li class="color-black current color-default" data-style="default">
							</li>
							<li class="color-blue" data-style="blue">
							</li>
							<li class="color-brown" data-style="brown">
							</li>
							<li class="color-purple" data-style="purple">
							</li>
							<li class="color-grey" data-style="grey">
							</li>
							<li class="color-white color-light" data-style="light">
							</li>
						</ul>
					</div>
					<div class="theme-option">
						<span>
							 布局
						</span>
						<select class="layout-option form-control input-small">
							<option value="fluid" selected="selected">流式</option>
							<option value="boxed">框式</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 头部
						</span>
						<select class="header-option form-control input-small">
							<option value="fixed" selected="selected">固定</option>
							<option value="default">跟随</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 边栏
						</span>
						<select class="sidebar-option form-control input-small">
							<option value="fixed">固定</option>
							<option value="default" selected="selected">默认</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 边栏位置
						</span>
						<select class="sidebar-pos-option form-control input-small">
							<option value="left" selected="selected">靠左</option>
							<option value="right">靠右</option>
						</select>
					</div>
					<div class="theme-option">
						<span>
							 底部
						</span>
						<select class="footer-option form-control input-small">
							<option value="fixed">固定</option>
							<option value="default" selected="selected">默认</option>
						</select>
					</div>
				</div>
			</div>
			<!-- 结束主题样式 -->

			<!-- 开始页头-->
			<div class="row">
				<div class="col-md-12">

					<!-- 开始页面标题及面包导航-->
					
					<h3 class="page-title">
					<{$authName}> <small><block name="pagetitle"></block></small>
					</h3>
					<ul class="page-breadcrumb breadcrumb">
						
						<li>
							<i class="fa fa-home"></i>
							<a href="<{:U('Index/index')}>">
								首页
							</a>
							<i class="fa fa-angle-right"></i>
						</li>
						<php>if(!empty($parentName)):</php>
						<li>
								<{$parentName}>
							<i class="fa fa-angle-right"></i>
						</li>
						<php>endif;</php>
						<li>
							<a href="__ACTION__">
								<{$authName}>
							</a>
						</li>
						<block name="dateRange">
						<li class="btn-group">
							<button type="button" class="btn blue dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">
							<span>
								快捷链接
							</span>
							<i class="fa fa-angle-down"></i>
							</button>
							<ul class="dropdown-menu pull-right" role="menu">
								<li>
									<a href="#">
										快捷链接1
									</a>
								</li>
								<li>
									<a href="#">
										快捷链接2
									</a>
								</li>
								<li>
									<a href="#">
										快捷链接3
									</a>
								</li>
								<li class="divider">
								</li>
								<li>
									<a href="#">
										快捷链接4
									</a>
								</li>
							</ul>
						</li>
						</block>
					</ul>
					
					<!-- 结束页面标题及面包导航-->
					
				</div>
			</div>
			<!-- 结束页头-->

			
			<!-- 开始页面内容 -->
			<block name="page">
			</block>
			<!-- 结束页面内容 -->
		</div>
	</div>
	<!-- 结束内容 -->
</div>
<!-- 结束主体内容 -->
<!-- 开始主体脚部 -->
<div class="footer">
	<div class="footer-inner">
		 <{$COMMON.copyRight}>
	</div>
	<div class="footer-tools">
		<span class="go-top">
			<i class="fa fa-angle-up"></i>
		</span>
	</div>
</div>

<!-- 结束主体脚部 -->
<!-- 修改密码 -->

<div class="modal fade" id="basic" tabindex="-1" role="basic" aria-hidden="true">
	<div class="modal-dialog">
		<form class="form-layout" action="<{:U('Managers/index')}>" method="post">
		<input type="hidden" name="ajax" value="savePass" >
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
				<h4 class="modal-title">修改密码</h4>
			</div>
			<div class="modal-body">
				 <div class="form-horizontal">
				 	<div class="form-group">
						<label class="col-sm-3 control-label" for="oldLoginPwd">原始密码</label>
						<div class="col-md-7">
							<div class="input-icon">
							<i class="fa fa-lock"></i>
							<input type="password" class="form-control" placeholder="原始密码" name="oldLoginPwd" id="oldLoginPwd"  value="" /></div>
						</div>
					</div>
				 	<div class="form-group">
						<label class="col-sm-3 control-label" for="newLoginPwd">新密码</label>
						<div class="col-md-7">
							<div class="input-icon">
							<i class="fa fa-lock"></i>
							<input type="password" class="form-control" placeholder="新密码" name="newLoginPwd" id="newLoginPwd"  value="" /></div>
						</div>
					</div>
				 	<div class="form-group">
						<label class="col-sm-3 control-label" for="reNewLoginPwd">确认新密码</label>
						<div class="col-md-7">
							<div class="input-icon">
							<i class="fa fa-lock"></i>
							<input type="password" class="form-control" placeholder="确认新密码" name="reNewLoginPwd" id="reNewLoginPwd"  value="" /></div>
						</div>
					</div>
				 </div>
			</div>
			<div class="modal-footer">
				<button type="button" class="noLay btn default" data-dismiss="modal">取消</button>
				<button type="submit" class="yesLay btn blue">确定</button>
			</div>
		</div>
		</form>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
</div> 
<{$COMMON.analytics}>

<!-- 开始JS -->
<!-- 开始加载核心JS -->
<!--[if lt IE 9]>
<script src="__PUBLIC__/admin/plugins/respond.min.js"></script>
<script src="__PUBLIC__/admin/plugins/excanvas.min.js"></script> 
<![endif]-->
<script src="__PUBLIC__/admin/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<!-- 重要! 加载 jquery-ui-1.10.3.custom.min.js 要先于 bootstrap.min.js -->
<script src="__PUBLIC__/admin/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/scripts/layer/layer.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/jquery-validation/dist/jquery.validate.min.js" type="text/javascript"></script>
<!-- 结束加载核心JS -->
<!-- 开始加载插件JS -->

<!-- 开始加载JS块 -->
<block name="loadJS"></block>
<!-- 结束加载JS块 -->

<!-- 结束加载插件JS -->

<!-- 开始配置JS脚本 -->
<script src="__PUBLIC__/admin/scripts/core/app.js" type="text/javascript"></script>
<script src="__PUBLIC__/Admin/scripts/custom/validateLayout.js"></script>
<!-- 开始配置JS块 -->
<block name="setJS">

</block>
<!-- 结束配置JS块 -->

<!-- 结束配置JS脚本 -->
<!-- 开始调用JS -->
<script>
var getNum=function(){
	 $.post("<{:U('Index/getNum')}>",'',function(data){
	 	$.each(data,function(key,val){
	 		if(val>0){
	 			$('.'+key).html(val);
	 			$('.'+key).show();
	 		}else{
	 			$('.'+key).hide();
	 		}
	 	});
	 })
}
getNum();
var mtimer=setInterval('getNum()',5000);
var delay = 120*60 * 1000,timer;//10s后锁定，修改delay为你需要的时间，单位毫秒
var	startTimer=function () {
	
	clearTimeout(timer);
	timer = setTimeout(TimerHandler, delay);
}
var	TimerHandler=function () {
	location.href=Module+"/Public/lock";
	document.onmousemove = null;//锁定后移除鼠标移动事件
}
var mouseoverLoad=function(){
	document.onmousemove = startTimer;//锁屏定时
	startTimer();
}
var Public="__PUBLIC__";//公共资源路径	  
var Upload="__UPLOAD__";//上传路径
var Module="__MODULE__";//当前模块路径
var layUrl="<{:U('Index/editPass')}>";
jQuery(document).ready(function() { 
   App.init(); // 调用布局及核心插件
   ValidateLayout.init();
   mouseoverLoad();//锁屏定时
/*-- 开始调用JS块 --*/
<block name="initJS"></block>
/*-- 结束调用JS块 --*/
});
</script>
<!-- 结束调用JS -->



<!-- 结束JS -->
</body>
<!-- 主体结束 -->
</html>